<template>
  <div class="app-components">
    <!--图片位置左侧-->
    <el-row :gutter="10">
      <el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
        <el-card :body-style="{ padding: '10px 20px' }">
          <div class="card-title">
            <img class="image" :src="task" />
            <!-- <el-icon><Goods /></el-icon> -->
            <div class="right-format">
              <span class="title-span">Battery</span>
              <div class="div-descript">jiance</div>
              <el-divider />
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
        <el-card :body-style="{ padding: '10px 20px' }">
          <div class="card-title">
            <img class="image" :src="task" />
            <!-- <el-icon><Goods /></el-icon> -->
            <div class="right-format">
              <span class="title-span">Battery</span>
              <div class="div-descript">jiance</div>
              <el-button type="text" class="button">详情信息</el-button>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
        <el-card :body-style="{ padding: '10px 20px' }">
          <div class="card-title">
            <img class="image" :src="task" />
            <!-- <el-icon><Goods /></el-icon> -->
            <div class="right-format">
              <span class="title-span">Battery</span>
              <div class="div-descript">jiance</div>
              <el-button type="text" class="button">详情信息</el-button>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6">
        <el-card :body-style="{ padding: '10px 20px' }">
          <div class="card-title">
            <img class="image" :src="task" />
            <!-- <el-icon><Goods /></el-icon> -->
            <div class="right-format">
              <span class="title-span">Battery</span>
              <div class="div-descript">jiance</div>
              <el-divider />
              <!-- <el-button type="text" class="button">详情信息</el-button> -->
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>
<script setup lang="ts">
import task from "@/assets/task.png";
</script>

<style lang="scss" scoped>
.card-title {
  // flex意为"弹性布局"，用来为盒状模型提供最大的灵活性。
  display: flex;
  align-items: center;
}
.image {
  // width: 200px;
  height: 100px;
  min-height: 100%;
  margin-right: 16px;
  // 圆角
  border-radius: 5px;
  // float: left;
  // border: 1px solid blue;
}
.right-format {
  width: 130px;
  min-height: 100%;
}
.title-span {
  font-size: 18px;
  display: flex;
  justify-content: flex-end;
}
.div-descript {
  margin: 10px 0px 6px 0px;
  font-size: 14px;
  color: #373d41;
  text-align: justify;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}
.el-button {
  padding: 0px;
  margin-bottom: 8px;
  display: block;
}
</style>
